package creational.prototype;

public class Circle implements Component {
  private double radius;

  @Override
  public void render() {
    System.out.println("Rendering Circle");
  }

  @Override
  public Component clone() {
    Circle clonedCircle = new Circle();
    clonedCircle.setRadius(this.radius);
    return clonedCircle;
  }

  public double getRadius() {
    return radius;
  }

  public void setRadius(double radius) {
    this.radius = radius;
  }
}
